package com.dlwx.firefighting.adapter;

import android.content.Context;
import android.widget.TextView;

import com.dlwx.firefighting.R;
import com.dlwx.firefighting.bean.ProfitBean;

/**
 * Created by Administrator on 2017/9/6.
 */

public class ProfitAdapter extends ListBaseAdapter<ProfitBean> {
    private Context context;
    public ProfitAdapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_profit;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        ProfitBean bean = getDataList().get(position);
        TextView moneyTv=holder.getView(R.id.money_tv);
        TextView timeTv=holder.getView(R.id.time_tv);
        moneyTv.setText(context.getString(R.string.rmb)+bean.getShare_money());
        timeTv.setText(bean.getTime());

    }
}
